﻿using Lidgren.Network;
using Model.Nova;

namespace Network.Messages.Nova
{
    /// <summary>
    /// Requests the Introducer to register this Server, by passing a unique hardware ID.
    /// </summary>
    public class RequestSelfMachineNewPassword : NovaMessage
    {
        public RequestSelfMachineNewPassword()
            : base((ushort) CustomMessageType.RequesetSelMechineNewPasswordMessage)
        {
        }

        public string Identity;
  
        public override void WritePayload(NetOutgoingMessage message)
        {
            base.WritePayload(message);
            message.Write(Identity);
        }

        public override void ReadPayload(NetIncomingMessage message)
        {
            base.ReadPayload(message);
            Identity = message.ReadString();
        }
    }
}